<template>
  <div>mine</div>
</template>

<script>
export default {
  
  beforeRouteEnter(to, from, next) {
    // console.log(this);
    // console.log(to);
    // console.log(from);
    // console.log(next);
    next();
  },
  beforeRouteLeave(to, from, next) {
    //离开当前路由触发守卫
    // console.log(to);
    // console.log(from);
    // console.log(next);
    next();
  },
  beforeUpdate(to, from, next) {
    console.log(to);
    console.log(from);
    console.log(next);
    next();

  }
};
</script>

<style scoped>
</style>